#ifndef _TNode_h_
#define _TNode_h_
//---------------------------------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------------------------------
  class TNode {
      
    protected :
        
      void  *info;
      TNode *next;
      
    public :
        
      TNode():info(NULL), next(NULL) {};
      TNode(void* data):info(data) { next = NULL; };
      ~TNode() {if (info) delete info; };

      //Get Functions
      void*  Info() { return info; };
      TNodo* Next() { return next; };

      //Set Functions
      void   Info(void* data) {  info = data; };
      void   Next(TNode* prox) { next = prox; };

      TNode operator=(const TNode &NodeT) { info = NodeT.info; next = NodeT.next; return *this; };
      
  };
//---------------------------------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------------------------------
#endif
